@import '../../../tools/utils';

.cards {
  display: block;
  font-size: 0;
  line-height: 1;
  text-align: left;
  .card {
    @include verticalAlign(top);
    @include cursor();
    position: relative;
    width: 200px;
    height: auto;
    margin-left: 10px;
    margin-bottom: 10px;
    transition: 150ms all linear 0ms;
    border: 3px solid transparent;
    &:hover {
      box-shadow: 3px 3px 2px #dddddd;
    }
    &:active {
      box-shadow: none;
    }
    &.active {
      border-color: #00c09e;
      &:before {
        opacity: 1;
      }
    }
    &:before {
      content: '\2714';
      transition: 150ms all linear 0ms;
      opacity: 0;
      position: absolute;
      top: (200px - 40px) / 2;
      left: (200px - 40px) / 2;
      width: 40px;
      height: 40px;
      line-height: 40px;
      background-color: #00c094;
      border-radius: 50%;
      color: #ffffff;
      text-align: center;
      font-size: 16px;
      z-index: 10;
      box-sizing: border-box;
    }
    .card-img {
      display: block;
      height: 200px;
      background: transparent scroll no-repeat center center;
      background-size: 100% 100%;
    }
    .card-name {
      @include ellipsis();
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      display: block;
      text-align: center;
      font-size: 14px;
      color: #ffffff;
      background-color: rgba(0, 0, 0, 0.6);
      height: 30px;
      line-height: 30px;
    }
  }
}
